package start

import (
	"gitee.com/liumou_site/tencent-cloud-ssl-automatic/module/AppStruct"
	"gitee.com/liumou_site/tencent-cloud-ssl-automatic/module/app"
)

func New(file, DomainDir string, countdown int) *app.SSL {
	s := new(app.SSL)
	s.LoginDir = file
	s.DomainDir = DomainDir
	s.Domain = new(AppStruct.DomainConfig)
	s.Login = new(app.LoginStruct)
	s.Result = new(app.SSLResult)

	Run(s, countdown)
	return s
	//list, err := AppSsl.GetSSLList(s.Login.Login.SecretId, s.Login.Login.SecretKey)
	//if err != nil {
	//	logger.Error(err)
	//}
	//logger.Info(list)
}
